package com.ky.course.controller;


import com.ky.common.vo.R;
import com.ky.course.service.MaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 教材表 前端控制器
 * </p>
 *
 * @author zpa
 * @since 2024-06-18
 */
@RestController
@RequestMapping("/course/material")
public class MaterialController {


    @Autowired
    private MaterialService materialService;
    @RequestMapping("/courseRefmaterial")
    public R getCourseRefmaterial(@RequestParam("courseId") Integer courseId){
        return R.ok(materialService.getCourseRefmaterial(courseId));
    }
}

